<?php
/**
 *
 * Author: LiuJianPeng
 * Date: 2023/9/18
 * Time: 18:01
 */

namespace App\OpenApi\WebApi\Index;

use App\Service\OpenApi\AppApi\OpenBaseApi;
use App\Service\Core\Index\IndexService;

class IndexApi extends OpenBaseApi
{
    /**
     * 获取到期统计数据
     * @return array
     */
    public function expiration(): array
    {
        $res = (new IndexService())->expiration($this->input('start_at'), $this->input('end_at'));
        return alert_info(0, '获取成功', $res);
    }

}
